#!/bin/bash

scriptPath=$(cd $(dirname $0) && pwd)
cd ${scriptPath}

stop() {
    echo "====================================================="
    echo "[stop $1]"
    ps aux | grep $1 | grep -v grep
    ps aux | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9 >/dev/null 2>&1
    echo "-----------------------------------------------------"
}

stop webhooks.py
